<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'amline.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="<%=path%>/amline/swfobject.js"></script>

  </head>
  
  <body>
   <div id="flashcontent"></div>
			 <script type="text/javascript">
			 var so = new SWFObject("<%=path %>/amline/amline.swf", "amline", "820", "400", "8", "#FFFFFF");
			  so.addVariable("path", "amline/");  
			  so.addVariable("chart_id", "amline"); // if you have more then one chart in one page, set different chart_id for each chart	
			  so.addVariable("settings_file", encodeURIComponent("<%=path %>/amline/amline_settings.xml"));
			 
			 so.addVariable('data_file', escape('<%=path %>/realTimeChart.do?method=realDateAmline')); 
			 so.addVariable("preloader_color", "#999999");
			  so.write("flashcontent");
			</script>
			
			
	<div id="flashcontent" style="width: 100%"><strong>You need to upgrade your Flash Player</strong></div>               
           <script type="text/javascript">
				  //var so = new SWFObject("<%=path %>/amline/amline.swf?cache=0", "amline", "640", "420", "8", "#FFFFFF");
               	 // so.addVariable("path", "amline/")                  
                  //so.addVariable("settings_file", escape("<%=path %>/amline/auto-reloading-chart.xml"));
               	                    
                  //so.addVariable('data_file', escape('<%=path %>/realTimeChart.do?method=realDateAmline'));
                  //so.addVariable("preloader_color", "#999999");
               	 // so.addParam("wmode", "opaque");
               	 // so.write("flashcontent");
          </script>
  </body>
</html>
